<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="measureUnitList.title"/></title>
    <meta name="heading" content="<fmt:message key='measureUnitList.heading'/>"/>
        <meta name="menu" content="RoleMaterial"/>
</head>
<div id="help">
    <h2>
        <a href="<c:url value='helpMeasureUnitList.html?decorate=false'/>"
           title="Ayuda Unidades de Medida"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
               <fmt:message key="help"/>
        </a>
    </h2>
</div>
<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editMeasureUnit.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="measureUnits" value="measureUnits" scope="request"/>
<br><br>
<display:table name="measureUnits" class="table" requestURI="" id="measureUnitList" export="true" pagesize="25">
    <display:column href="editMeasureUnit.html"
    paramId="id" paramProperty="id" style="width:0px"/>
    <display:column property="name" sortable="true" titleKey="material.unitMeasureAbrev"/>
    <display:column property="description" sortable="true" titleKey="material.unitMeasureFull"/>

    <display:setProperty name="paging.banner.item_name" value="measureUnit"/>
    <display:setProperty name="paging.banner.items_name" value="measureUnits"/>
    <display:setProperty name="paging.banner.all_items_found" value=""/>
    <display:setProperty name="export.excel.filename" value="MeasureUnit List.xls"/>
    <display:setProperty name="export.csv.filename" value="MeasureUnit List.csv"/>
    <display:setProperty name="export.pdf.filename" value="MeasureUnit List.pdf"/>
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    highlightTableRows("measureUnitList");
</script>